<div class="page">
	<div class="layoutBox">

	<form method="post" action="__URL__/insert/navTabId/__MODULE__" class="pageForm required-validate"  enctype="multipart/form-data" onsubmit="return iframeCallback(this, dialogAjaxDone)">
		<input type="hidden" name="add_time" value="<?php echo time() ?>"/>
		<div class="pageFormContent" layoutH="100">
            <div class="unit">
				<label>图片名称：</label>
				<input type="text" name="title" size="40" value="" class="required">
			</div>		
            <div class="unit">
                <label>所属分类：</label>
                <input type="text" class="required" size="40" readonly="readonly" id="categoryName_add_photo" name="categoryName" value="{$Think.get.tid|getCategoryName}" />
                <a class="unit btn" href="__APP__/Ui/tree/mod/__MODULE__/selparent/0/selmore/0/cid/tid_add_photo/cname/categoryName_add_photo" target="dialog" rel="tree" mask="true" title="选择分类" width="400" height="450">选择分类</a>
                <input type="hidden" class="required" id="tid_add_photo" name="tid" value="{$Think.get.tid}" />
            </div>
			<div class="unit">
				<label>图片简介：</label>
				<textarea name="intro" rows="5" cols="50"></textarea>
			</div>
            <div class="unit">
                <label>排序值：</label>
                <input type="text" name="sort" size="40" value="{$vo.sort}"/>
            </div>
            <div class="unit">
                <label>状态：</label>
                <select class="small bLeft"  name="status">
                    <option value="1">启用</option>
                    <option value="0">禁用</option>
                </select>
            </div>
            <div class="unit">
                <label>图片上传：</label>
                <input type="file" name="img" />
            </div>
			<div class="unit">
				<label>外部图片：</label>
				<input type="text" name="imgurl" size="40" id="imgurl" value="">
			</div>
            <div class="unit">
                <label>链接地址：</label>
                <input type="text" name="link" size="40" value="">
            </div>
			</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">提交</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
			</ul>
		</div>
	</form>
	
	</div>
</div>